package org.ccay.web.support.internal;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.ccay.core.exception.ApplicationException;
import org.ccay.web.support.WebRequestVO;

/**
 * 资源处理类	
 */
public interface IResourceHandler {
 
	/**
	 * 
	 * 将资源发送到响应
	 * @param httpRequest
	 * @param httpResponse
	 * @param webRequest
	 * @throws IOException
	 */
	void sendResourceToResponse(HttpServletRequest httpRequest, HttpServletResponse httpResponse,
			WebRequestVO webRequest) throws IOException, ApplicationException;
	
	/** 
	 * 清除资源缓存
	 * 
	 * @since 2013-1-4
	 */
	void clearResourceCache();
}
